/*
 * @Author: cooper
 * @Date: 2025-04-03 10:44:02
 * @Wechat: cmd_develop
 * @Description:
 */
#ifndef __COMMON_H
#define __COMMON_H
#include "at32f435_437_clock.h"

#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
#include "event_groups.h"

#include "shell_port.h"
#include "../BSP/bsp_log/log.h"

#include "tools/utils.h"
#include "tools/mks_hex.h"
#include "tools/reg_key.h"

#include "./bsp_led/bsp_led.h"
#include "./bsp_usart/bsp_usart.h"
#include "./bsp_arm/bsp_arm.h"
#include "./bsp_lift/bsp_lift.h"
#include "./bsp_food/bsp_food.h"
#include "./bsp_temputure/bsp_temputure.h"
#include "./bsp_servo/bsp_servo.h"
#include "./bsp_step/bsp_step.h"

#define JX_TRUE 1
#define JX_FALSE 0
// 从机 地址
#define LONG_ARM_ADDRESS 0X01
#define SHORT_ARM_ADDRESS 0X02
#define Z_ARM_ADDRESS 0X03
#define PAW_ARM_ADDRESS 0X04
#define STICK_ARM_ADDRESS 0X05
#define ARM_BARD 115200

#define UPDOWN_LIFT_ADDRESS 0X01
#define DOOR_LIFT_ADDRESS 0X02
#define LIFT_BARD 115200

#define ONE_FOOD_ADDRESS 0X01
#define TWO_FOOD_ADDRESS 0X02
#define THREE_FOOD_ADDRESS 0X03
#define FOUR_FOOD_ADDRESS 0X04
#define DIO_FOOD_ADDRESS 0X05
#define FOOD_BARD 115200

#define SCREEN_BARD 115200

#define TEMPUTURE_BARD 115200

// 电机的状态
#define MOTO_INIT 0
#define MOTO_ZERO 1
#define MOTO_POS 2
#define MOTO_QUEUE 99

#endif
